home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ffffuuuusssseeeerrrr((((1111MMMM)))) ffffuuuusssseeeerrrr((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- _ffff_uuuu_ssss_eeee_rrrr - identify processes using a file or file structure
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _ffff_uuuu_ssss_eeee_rrrr [_----[_cccc|_ffff]_kkkk_qqqq_uuuu] _f_i_l_e_s [[_----] [_----[_cccc|_ffff]_kkkk_qqqq_uuuu] _f_i_l_e_s
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _ffff_uuuu_ssss_eeee_rrrr outputs the process IDs of the processes that are using the _f_i_l_e_s
- specified as arguments. Each process ID is followed by one of these
- letter codes, which identify how the process is using the file:
-
- _cccc As its current directory.
-
- _rrrr As its root directory, which was set up by the _cccc_hhhh_rrrr_oooo_oooo_tttt(1M) command.
-
- _oooo As an open file.
-
- _tttt As its text file.
-
- _mmmm As a mapped file, requested by _mmmm_mmmm_aaaa_pppp(2) or _eeee_xxxx_eeee_cccc(2) in the case of
- dynamic shared libraries.
-
- _yyyy As its controlling terminal.
-
- _aaaa As its trace file located in the _////_pppp_rrrr_oooo_cccc directory.
-
- For block special devices with mounted filesystems, processes using any
- file on that device are listed (unless the _----_ffff flag is specified). If
- _f_i_l_e has the form _h_o_s_t_n_a_m_e:_p_a_t_h_n_a_m_e and names a mounted NFS filesystem,
- all processes using any file in that system are listed.
-
- If _f_i_l_e has the form _p_o_r_t/_p_r_o_t_o_c_o_l or _h_o_s_t_n_a_m_e:_p_o_r_t/_p_r_o_t_o_c_o_l and names no
- file or directory, _ffff_uuuu_ssss_eeee_rrrr lists all processes using sockets bound or
- connected to the specified port. _p_o_r_t may be either an integer constant
- or a service name (see _ssss_eeee_rrrr_vvvv_iiii_cccc_eeee_ssss(4)). _p_r_o_t_o_c_o_l must be either _tttt_cccc_pppp, _uuuu_dddd_pppp,
- or _ssss_tttt_pppp, and _h_o_s_t_n_a_m_e (if specified) must be an Internet address or
- hostname (see _hhhh_oooo_ssss_tttt_ssss(4)). For all other types of files (text files,
- executables, directories, devices, UNIX-domain sockets, and so on) only
- the processes using that file are reported.
-
- The following options may be used with _ffff_uuuu_ssss_eeee_rrrr:
-
- _----_cccc May be used with files that are mount points for filesystems. With
- that option the report is for use of the mount point and any files
- within that mounted filesystem.
-
- _----_ffff When this is used, the report is only for the named file, not for
- files within a mounted filesystem or block device. Note that _----_ffff and
- _----_cccc are mutually exclusive.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ffffuuuusssseeeerrrr((((1111MMMM)))) ffffuuuusssseeeerrrr((((1111MMMM))))
-
-
-
- _----_uuuu The user login name, in parentheses, also follows the process ID.
-
- _----_qqqq Quiet mode: _ffff_uuuu_ssss_eeee_rrrr prints nothing except process IDs separated by
- commas to the standard output. This option is useful in conjunction
- with the _----_pppp option of _pppp_ssss(1).
-
- _----_kkkk The SIGKILL signal is sent to each process. Since this option
- spawns kills for each process, the kill messages may not show up
- immediately (see _kkkk_iiii_llll_llll(2)).
-
- _---- A lone dash cancels the options currently in force.
-
- If more than one group of files are specified, the options may be
- respecified for each additional group of files.
-
- If the _----_qqqq flag is not in effect, the process IDs are printed as a single
- line on the standard output, separated by spaces and terminated with a
- single new line. All other output is written on standard error.
-
- Any user can use _ffff_uuuu_ssss_eeee_rrrr. Only a privileged user can terminate another
- user's process.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- _ffff_uuuu_ssss_eeee_rrrr _----_cccc_kkkk_uuuu _////_uuuu_ssss_rrrr
-
- If typed by a user with appropriate privileges, terminates all processes
- that are preventing _////_uuuu_ssss_rrrr filesystem from being unmounted, listing the
- process ID and login name of each as it is killed.
-
- _ffff_uuuu_ssss_eeee_rrrr _----_uuuu _////_eeee_tttt_cccc_////_pppp_aaaa_ssss_ssss_wwww_dddd
-
- Lists process IDs and login names of processes that have the password
- file open.
-
- _ffff_uuuu_ssss_eeee_rrrr _----_cccc_kkkk_uuuu _////_uuuu_ssss_rrrr _----_uuuu _////_eeee_tttt_cccc_////_pppp_aaaa_ssss_ssss_wwww_dddd
-
- Executes both of the above examples in a single command line.
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- TCP, UDP, and STP ports bound by the kernel (_e._g. NFS client endpoints)
- cannot be mapped to a process ID and no output will be generated.
-
- TCP, UDP, and STP ports bound by TLI applications (_e._g. rrrrppppccccbbbbiiiinnnndddd(1M))
- cannot be currently mapped to a process ID and no output will be
- generated. This will be corrected in a future release.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- chroot(1M), mount(1M), ps(1), kill(2), signal(2), proc(4).
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-